package com.andaily.domain.dto.cooking;

import com.andaily.domain.shared.paginated.DefaultPaginated;

import java.math.BigDecimal;

/**
 * @author Shengzhao Li
 */
public class CookingAccountOverviewDto extends DefaultPaginated<CookingAccountDto> {

    private String recordedAmount = "0";
    private String finishedAmount = "0";

    public CookingAccountOverviewDto() {
    }

    public String getRecordedAmount() {
        return recordedAmount;
    }

    public void setRecordedAmount(String recordedAmount) {
        this.recordedAmount = recordedAmount;
    }

    public String getFinishedAmount() {
        return finishedAmount;
    }

    public void setFinishedAmount(String finishedAmount) {
        this.finishedAmount = finishedAmount;
    }

    public void updateAmount(BigDecimal recordedAmount, BigDecimal finishedAmount) {
        if (recordedAmount != null) {
            this.recordedAmount = recordedAmount.toString();
        }
        if (finishedAmount != null) {
            this.finishedAmount = finishedAmount.toString();
        }
    }
}
